From 77f141c97e4d0df3e8ba66dbe8bec5241959c59e Mon Sep 17 00:00:00 2001 From: robertl Date: Thu, 28 Jul 2005 18:42:27 +0000 Subject: [PATCH] Return error (that isn't actually tested by caller, but that's OK becuase the return value isn't actually _used_ anyway...) --- gdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb.c b/gdb.c index c914fbd01..b5eb8cf95 100644 --- a/gdb.c +++ b/gdb.c @@ -519,7 +519,7 @@ gdb_read_route(void) if (buff[0] == 1) gdb_fread_le(fin, buff, 8, 64, "min_alt"); gdb_fread_le(fin, &count, sizeof(count), 32, "rte_count"); - if (count <= 0) return; + if (count <= 0) return NULL; route = route_head_alloc(); route->rte_name = xstrdup(xname); -- 2.30.2